/*!
 * \file GapEventMediaBearerRelease.h
 * \brief Event carrying message GapMediaBearerRelease
 */

#ifndef MGW_GAP_EVENT_MEDIA_BEARER_RELEASE_H
#define MGW_GAP_EVENT_MEDIA_BEARER_RELEASE_H

#include "EventData.h"
#include "GapGlobals.h"
#include "GAP.pb.h"

namespace tsc
{
namespace mgw
{

using GatewayApplicationPart::GapMediaBearerRelease;

/**
 * Serving Gateway requests release of media bearer
 */
class GapEventMediaBearerRelease : public common::EventData
{
public:

    GapEventMediaBearerRelease(GapMediaBearerRelease& releaseReq) :
		EventData(GAP_MEDIA_BEARER_RELEASE),
		mConnectionId(releaseReq.connectionid())
	{

	}

	virtual ~GapEventMediaBearerRelease()
	{

	}

    uint32_t getConnectionId() const
    {
        return mConnectionId;
    }

private:

    uint32_t mConnectionId;
};

} // namespace mgw
} // namespace tsc

#endif // MGW_GAP_EVENT_MEDIA_BEARER_RELEASE_H
